<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<link href="images/reset.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
<link href="images/system.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" /> 
<link href="images/table_form.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
<script src="{yun:}$config.sy_weburl{/yun}/js/jquery-1.8.0.min.js?v={yun:}$config.cachecode{/yun}"></script>
<link href="{yun:}$config.sy_weburl{/yun}/js/layui/css/layui.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
<script src="{yun:}$config.sy_weburl{/yun}/js/layui/layui.js?v={yun:}$config.cachecode{/yun}"></script>
<script src="{yun:}$config.sy_weburl{/yun}/js/layui/phpyun_layer.js?v={yun:}$config.cachecode{/yun}"></script>
<script src="js/admin_public.js?v={yun:}$config.cachecode{/yun}" language="javascript"></script> 
<script> 
function check_type(id,value){
	var val = value=="1"?"0":"1";
	var pytoken=$("#pytoken").val();
	$.post("index.php?m=advertise&c=ajax_check",{id:id,val:val,pytoken:pytoken},function(data){
		html = "<a href=\"javascript:void(0);\" onClick=\"check_type("+id+","+val+");\" >"+data+"</a>";
		$("#"+id).html(html);
	});
}
</script>
<title>后台管理</title>
</head>

<body class="body_ifm">
<div class="infoboxp">
<div class="admin_new_tip">
    <div class="admin_new_tit"><i class="admin_new_tit_icon"></i>操作提示</div>
    <div class="admin_new_tip_list_cont">
      <div class="admin_new_tip_list">该页面展示了网站的SEO管理，可对SEO进行编辑修改操作。</div>
    </div>
  </div>
  <div class="clear"></div>

  <div class="admin_new_search_box">
  {yun:}foreach item=row key=key from=$arr_data.seomodel{/yun}   
    <span class="infoboxp_top_span_sz  {yun:}if $smarty.get.action==$key || ($smarty.get.action=='' && $key=='index'){/yun}infoboxp_top_span_sz_in {yun:}/if{/yun}" >
    <a href="index.php?m=seo&action={yun:}$key{/yun}">{yun:}$row{/yun}</a></span>
    {yun:}/foreach{/yun}
      <div class="clear"></div>
    <div class="mt8">
    <a href="index.php?m=seo&c=SeoAdd" class="admin_new_cz_tj" style="margin-left:0px;">+ 添加SEO</a>
    </div> 
</div>
 <div class="clear"></div>


<div class="table-list">

<div class="tag_box" >
<iframe id="supportiframe"  name="supportiframe" onload="returnmessage('supportiframe');" style="display:none"></iframe>
<form action="index.php" name="myform" method="get" id='myform' target="supportiframe">
<input type="hidden" name="m" value="seo">
<input type="hidden" name="c" value="del">
<input type="hidden" name="pytoken" id='pytoken'  value="{yun:}$pytoken{/yun}">
<table width="100%"  class="table_form">
	<tbody>
		<tr class="admin_table_trbg">
        	<th bgcolor="#f0f6fb"><label for="chkall"><input type="checkbox" id='chkAll' onclick='CheckAll(this.form)' /></label></th>
			<th  bgcolor="#f0f6fb"align="left" width="200"><span class="admin_bold">名称</span></th>
            <th  bgcolor="#f0f6fb"align="left">SEO标识符</th>
            <th bgcolor="#f0f6fb" align="left">网页标题</th>
            <th bgcolor="#f0f6fb" align="left">更新时间</th>
			<th bgcolor="#f0f6fb" align="center" style="text-align:center" >操作</th>
		</tr>
	</tbody>
	<tbody>
    {yun:}foreach from=$seolist item=list key=key {/yun}
    <tr align="left" {yun:}if ($key+1)%2=='0'{/yun}class="admin_com_td_bg"{yun:}/if{/yun} id="list{yun:}$list.id{/yun}">
    	<td align="center"><input type="checkbox" value="{yun:}$list.id{/yun}" name='del[]' onclick='unselectall()' rel="del_chk" /></td>
    	<td width="100px" align="left" class="td1"><span>{yun:}$list.seoname{/yun}</span></td> 
        <td align="left" class="ud">{yun:}$list.ident{/yun}</td>
        <td width="400px" align="left" class="ud">{yun:}$list.title{/yun}</td>
        <td width="100px" class="ud" align="left">{yun:}$list.time|date_format:"%Y-%m-%d"{/yun}</td>
    	<td width="150px" align="center"> <a href="index.php?m=seo&c=SeoAdd&id={yun:}$list.id{/yun}" class="admin_new_c_bth">修改</a>
        <a href="javascript:;" onClick="layer_del('确定要删除？','index.php?m=seo&c=del&del={yun:}$list.id{/yun}');" class="admin_new_c_bth admin_new_c_bth_sc">删除</a></td>
  	</tr>
  {yun:}/foreach{/yun}
  
  </tbody>
  </table>
</form>
</div>
</div>
</div>

</body>
</html>